package com.jh.paymentchannel.business;

import com.jh.paymentchannel.pojo.Spend;

import java.util.List;

public interface SpendBusiness {

	Spend addOne(Spend model);
	
	Spend findByorderSon(String orderSon);
	
	List<Spend> findBybindId(String bindId);

	List<Spend> findByOrderCode(String orderCode);
	
	List<Spend> findByUserId(String userId);

	Spend save(Spend model);

	Spend findByOrderCodeAndAmount(String orderCode, String amount);
	
	Spend findById(long id);
	
	List<Spend> findByExecutionTime(String start, String end);
	
	List<Spend> findByExecutionTimeandStatus(String start, String end);

	void delete(Spend spend);
	
	List<Spend> queryTaskByBatchNo(String batchNo);
}
